package activity.appother;

import org.shmsa.hst4a.R;

import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class AppBaseWeb extends AppBase {
	
	public WebView webview;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.app_base_web);
		webview=(WebView)findViewById(R.id.webview);
		webview.setBackgroundColor(0);
		WebSettings webSettings = webview.getSettings();
		webSettings.setJavaScriptEnabled(true);
		webSettings.setDomStorageEnabled(true);
		///webview.setBackgroundDrawable(getResources().getDrawable(R.drawable.default_background));
		///webview.loadUrl(Utils.wholeUrlLogined("app6/stat_for_mobile.jsp?"));
		
        webview.setWebViewClient(new WebViewClient() {

            @Override
            public boolean shouldOverrideUrlLoading(WebView view, String url) {
            	view.clearView();
                view.loadUrl(url);
                return true;
            }
        });
	}

}
